package cn.com.shaom.learning.sb.mq.jms.example1;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * ClassName: SimpleSeceiver
 * Description:
 * Date: 2017/12/29 10:05 【需求编号】
 *
 * @author Shaom
 * @version V1.0.0
 */
@Component("SimpleReceiver1")
public class SimpleReceiver {

    @JmsListener(destination = "leainingSpringBoot")
    public void receive(String msg) {
        System.out.println("监听到的数据: \n" + msg);
    }

}
